

class MyResponse():
    def __init__(self):
        self.status = 100
        self.msg = '成功'

    @property
    def get_dict(self):
        return self.__dict__


if __name__ == '__main__':
    ret = MyResponse()
    ret.data = {'name': 'AKW'}
    print(ret.get_dict)